//
//  YijuWebViewController.h
//  YiJuZhangShou2.0
//
//  Created by 冷悦 on 16/3/27.
//  Copyright © 2016年 Mr.X. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    CompanyMagazine = 1,
    LayoutMagazine = 2,
    ServiceMagazine = 3,
    OtherMagazine = 4,
    IndianaActivity = 5,
    AuctionActivity = 6,
    GroupBuyActivity = 7
} MagazineType;

@interface YijuWebViewController : UIViewController

@property (nonatomic, copy)NSString *introduction;

@property (nonatomic, copy)NSString *htmlTitle;

@property (nonatomic, assign)MagazineType htmlTypeName;

@property (nonatomic, assign)NSUInteger htmlId;

@property (nonatomic, assign) NSInteger projectId;


/**
 *  初始化函数，传入html的id以及html的类型
 *
 *  @param htmlId       html的id
 *  @param htmlTypeName html的类型
 *  @param introduction html的简介
 *
 *  @return 返回相关对象
 */
- (instancetype)initWithHtmlId:(NSUInteger)htmlId
                  htmlTypeName:(MagazineType)htmlTypeName
                  projectId:(NSInteger)projectId
                  Introduction:(NSString *)introduction
                  andHtmlTitle:(NSString *)htmlTitle;

- (instancetype)initWithUrlAddress:(NSString *)urlAddress
                      withUrlTitle:(NSString *)urlTitle
                  withIntroduction:(NSString *)urlIntroduction;

/**
 *  发送网络请求，读取id对应的html地址
 */
- (void)loadHTMLRequest;

@end
